#ifndef __MHL10_H
#define	__MHL10_H


#include <stdio.h>
#include "main.h"
#include "usart.h"

void MHL10_Initial(void);
void MHL10_Addr_ON(void);
void MHL10_Addr_OFF(void);
void Get_MHL10_Addr(void);
void Enter_MHL10_Config_Mode(void);
void Quit_MHL10_Config_Mode(void);
void Set_MHL10_Node_To_Node(void);

void Set_MHL10_RF_Freq(uint8_t ch);
void Close_MHL10_RIQ(void);
void Get_MHL10_Config_Info(void);
void MHL10_Initial_Config(void);
uint8_t MHL10_Sent_Packet_To_Gateway(uint8_t *buf,uint8_t len);
void SendData_To_MHL10(UART_HandleTypeDef *huart,uint8_t *buf,uint8_t len);
void Set_MHL10_BW(void);
void Set_MHL10_SF(void);
void Set_MHL10_LCP(void);
void Set_MHL10_RXW(void);
void Set_MHL10_TYPE(void);
void Set_MHL10_BRATE(void);
void Wakeup_MHL10_HW(void);
void Sleep_MHL10_SW(void);
uint8_t Detect_MHL10_Baund(void);
uint8_t ConvertStringToHex(uint8_t *str);
uint16_t ReceiveCmdFromServer(uint8_t*Recebuffer);

uint8_t Check_MHL10(void);
void MHL10_Sent_Packet_To_Gateway_Reboot(void);


#endif

